import styled from 'styled-components';

export const Wrap = styled.div`
  will-change: position;
  user-select: auto;
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  &.resizable_box {
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
    cursor: move;
  }
  &.checked {
    border-color: #3d7fff;
  }
  .rect {
    display: block;
    width: 18px;
    height: 18px;
    position: absolute;
    border: 4px solid #c8ff00;
    will-change: position;
    z-index: 4;
  }
  .rect_left_top {
    left: -3px;
    top: -3px;
    border-right: none;
    border-bottom: none;
    cursor: nw-resize;
  }
  .rect_left_bottom {
    left: -3px;
    bottom: -3px;
    border-right: none;
    border-top: none;
    cursor: sw-resize;
  }
  .rect_right_top {
    right: -3px;
    top: -3px;
    border-left: none;
    border-bottom: none;
    cursor: ne-resize;
  }
  .rect_right_bottom {
    right: -3px;
    bottom: -3px;
    border-left: none;
    border-top: none;
    cursor: se-resize;
  }
  .rect_top {
    left: calc(50% - 8px);
    top: -3px;
    cursor: n-resize;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .rect_right {
    top: calc(50% - 8px);
    right: -3px;
    cursor: e-resize;
    border-left: none;
    border-top: none;
    border-bottom: none;
  }
  .rect_bottom {
    right: calc(50% - 8px);
    bottom: -3px;
    cursor: s-resize;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .rect_left {
    top: calc(50% - 8px);
    left: -3px;
    cursor: w-resize;
    border-top: none;
    border-right: none;
    border-bottom: none;
  }
  .content {
    width: 100%;
    height: 100%;
    cursor: move;
  }
`;
